package com.woniuxy.topic.listener;

import com.woniuxy.pojo.TopicMail;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class TopicListener2 {

    @RabbitListener(queues = "TopicQueue2",ackMode = "AUTO")
    public void receiveMessages(TopicMail topicMail){
        System.out.println("处理了一堆业务，topic消费者2："+topicMail);
    }

}
